<%@page import="java.util.HashSet"%>
<%@page import="java.util.Set"%>
<%@ page language="java" pageEncoding="UTF-8"%>
<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.util.Constants"%>
<%@page import="com.shsh.safemanage.model.User"%>
<%@page import="com.shsh.safemanage.model.Problem"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.ProblemDao"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="com.shsh.safemanage.action.BrowseProblemAction"%>

<%
BrowseProblemAction browseAction = ActionCreator.createBrowseProblemAction();
ProblemDao problemDao = DaoCreator.createProblemDao();
User user = (User) session.getAttribute(Constants.SESSION_USER);
%>
<div class="hider" id="hider">
	<span>&nbsp;</span>
</div>
<div class="position">
	<img src="images/position2.jpg" style="padding: 7px 9px; float: left;" />当前位置：中国石化安全问题管理平台 &gt;&gt; 待处理问题
</div>
<div class="tt">您的待处理问题</div>
<div class="content">
	<table align="center" border="1" width="99%" cellpadding="0"
		cellspacing="0">
		<%
		List<Problem> problemList = problemDao.getProblemsTobeProcessed(user.getId());
		%>
		<tr style="font-weight: bold" align="center">
			<td class="td1" width="20%">作业部（业务中心）</td>
			<td class="td1" width="20%">装置</td>
			<td class="td1" width="20%">问题标题</td>
			<td class="td1" width="6%">发现人</td>
			<td class="td1" width="12%">填报日期</td>
			<td class="td1" width="12%">回复日期</td>
			<td class="td1" width="10%">查看</td>
		</tr>
		<%
		for (Problem problem : problemList) {
		%>
		<tr>
			<td><%=problem.getDepartment1Name()%></td>
			<td><%=problem.getEquipmentName()%></td>
			<td><%=problem.getProblemTitle()%></td>
			<td align="center"><%=problem.getWriteUserName()%></td>
			<td align="center"><%=Util.formatDate(problem.getWriteTime().getTime())%></td>
			<td>&nbsp;</td>
			<td align="center">
				<a href="javascript:" 
					onclick="loadPageSection('/safe_manage/problem_feedback.jsp', 'mainContentDiv', {id:<%=problem.getId()%>,transferID:<%=problem.getTransferID()%>})">详细内容</a></td>
		</tr>
		<%
		}
		%>
	</table>
</div>
